<%@ page pageEncoding="utf-8"%>
<%@ taglib prefix="blue" uri="http://www.lanqiao.org" %>
	<!-- 适用于更新,因为更新的时候需要携带id信息 -->
	<input type="hidden" name="id" value="${model.id}" > <!-- getId()  -->

	<tr>
		<td class="tdLabel">名称</td>
		<td>
			<input value="${model.name}" name="name"  />
		</td>
	</tr>
	<tr>
		<td class="tdLabel">类别</td>
		<td>
			<blue:select name="typeId" list="${requestScope.types }" value="${model.typeId }"
			listKey="id" listValue="name"/>
		</td>
	</tr>
	<tr>
		<td class="tdLabel">价格</td>
		<td>
			<input value="${model.price}" name="price"  />
		</td>
	</tr>
	<tr>
		<td class="tdLabel">折扣</td>
		<td>
			<input value="${model.discount}" name="discount"  />
		</td>
	</tr>
	<tr>
		<td class="tdLabel">描述</td>
		<td>
			<input value="${model.descp}" name="descp"  />
		</td>
	</tr>
	<tr>
		<td class="tdLabel">供应商</td>
		<td>
			<input value="${model.supplier}" name="supplier"  />
		</td>
	</tr>
	<tr>
		<td class="tdLabel">数量</td>
		<td>
			<input value="${model.qty}" name="qty"  />
		</td>
	</tr>
	<tr>
		<td class="tdLabel">是否推荐</td>
		<td>
			<input type="radio" value="1" name="ispreferred" <c:if test='${model.ispreferred==1 or model.ispreferred==null }'>checked="checked"</c:if> >是
			<input type="radio" value="0" name="ispreferred" <c:if test='${model.ispreferred==0 }'>checked="checked"</c:if>>否
		</td>
	</tr>
	<tr>
		<td class="tdLabel">图片</td>
		<td><input type="file" name="pic"></td>
	</tr>
	<tr>
		<td class="tdLabel">图片</td>
		<td><input type="file" name="pic"></td>
	</tr>
	<tr>
		<td class="tdLabel">图片</td>
		<td><input type="file" name="pic"></td>
	</tr>
	<tr>
		<td class="tdLabel">图片</td>
		<td><input type="file" name="pic"></td>
	</tr>
	<tr>
		<td class="tdLabel">图片</td>
		<td><input type="file" name="pic"></td>
	</tr>
	<tr>
		<td class="tdLabel">图片</td>
		<td><input type="file" name="pic"></td>
	</tr>
	<tr>
		<td class="tdLabel">图片</td>
		<td><input type="file" name="pic"></td>
	</tr>
	<tr>
		<td class="tdLabel">图片</td>
		<td><input type="file" name="pic"></td>
	</tr>
	<tr>
		<td class="tdLabel">图片</td>
		<td><input type="file" name="pic"></td>
	</tr>
	<tr>
		<td class="tdLabel">图片</td>
		<td><input type="file" name="pic"></td>
	</tr>
